package com.qf.service;

import com.qf.dto.StudentDto;
import com.qf.pojo.TbCource;
import com.qf.pojo.TbStudent;
import com.qf.pojo.TbVariable;

import java.util.List;

/**
 * created by 赵文韬 on 2022/5/27 11:04
 */
public interface StudentService {
    //根据学生名查询
    TbStudent selectByName(String name);
    //添加新用户
    int insertStudent(StudentDto studentDto);
    //根据学生姓名和密码查询;
    TbStudent selectByNameAndPassword(String name,String password);
    //添加选课
    int addCource(TbVariable tbVariable);
    //删除选课
    int delCource(TbVariable tbVariable);
    //查看已选课程
    List<TbCource> selectById(int id);

}
